package com.ztjava.plugin.weixin;

import com.jfinal.plugin.IPlugin;

public class WeixinPlugin implements IPlugin{

	private String name;
	private String appid;
	private String secret;
	private String token;

	public WeixinPlugin(String name,String appid,String secret,String token){
		this.name = name;
		this.appid = appid;
		this.secret = secret;
		this.token = token;
	}
	@Override
	public boolean start() {
		WeixinSdk weixinSdk = new WeixinSdk(name,appid,secret,token);
		WeixinKit.AddSdk(weixinSdk);
		return true;
	}

	@Override
	public boolean stop() {
		return true;
	}

}
